zero组件
<button (click)="loadMore()">加载更多</button>
<hr />
<h4 *ngIf="productList.length <= 0; else hasData">暂无数据</h4>
<ng-template #hasData>
  <table border="1">
    <tbody>
      <tr *ngFor="let p of productList; index as indey">
        <td>{{ indey + 1 }}</td>
        <td>{{ p.pubTime }}</td>
        <td>{{ p.title }}</td>
        <td>
          <button (click)="deleteClick(indey)">删除</button>
        </td>
      </tr>
    </tbody>
  </table></ng-template
>
